package com.demo.strategy.config;

import com.demo.strategy.adapter.OrderPayPostProcessAdapter;
import com.demo.strategy.holder.OrderPayPostProcessorHolder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class HolderConfig {

    @Bean
    public OrderPayPostProcessorHolder orderPayPostProcessorHolder(List<OrderPayPostProcessAdapter> list){
        return new OrderPayPostProcessorHolder(list);
    }

}
